package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties("handler")
public class User extends BaseDomain {

    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private Integer gender = 0;

    private String coverImgUrl;

    private String sign;
    private  Long fans;
    private Long follows;

    public String getGenderName() {
        if (gender == 1) {
            return "女";
        } else if (gender == 0) {
            return "男";
        }
        return "保密";
    }

}